﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F55 RID: 3925
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicReviveAvatarScRsp : IMessage<RogueMagicReviveAvatarScRsp>, IMessage, IEquatable<RogueMagicReviveAvatarScRsp>, IDeepCloneable<RogueMagicReviveAvatarScRsp>, IBufferMessage
	{
		// Token: 0x170031D7 RID: 12759
		// (get) Token: 0x0600B004 RID: 45060 RVA: 0x001DC427 File Offset: 0x001DA627
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicReviveAvatarScRsp> Parser
		{
			get
			{
				return RogueMagicReviveAvatarScRsp._parser;
			}
		}

		// Token: 0x170031D8 RID: 12760
		// (get) Token: 0x0600B005 RID: 45061 RVA: 0x001DC42E File Offset: 0x001DA62E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicReviveAvatarScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170031D9 RID: 12761
		// (get) Token: 0x0600B006 RID: 45062 RVA: 0x001DC440 File Offset: 0x001DA640
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicReviveAvatarScRsp.Descriptor;
			}
		}

		// Token: 0x0600B007 RID: 45063 RVA: 0x001DC447 File Offset: 0x001DA647
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicReviveAvatarScRsp()
		{
		}

		// Token: 0x0600B008 RID: 45064 RVA: 0x001DC450 File Offset: 0x001DA650
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicReviveAvatarScRsp(RogueMagicReviveAvatarScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.rogueReviveCost_ = ((other.rogueReviveCost_ != null) ? other.rogueReviveCost_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B009 RID: 45065 RVA: 0x001DC49C File Offset: 0x001DA69C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicReviveAvatarScRsp Clone()
		{
			return new RogueMagicReviveAvatarScRsp(this);
		}

		// Token: 0x170031DA RID: 12762
		// (get) Token: 0x0600B00A RID: 45066 RVA: 0x001DC4A4 File Offset: 0x001DA6A4
		// (set) Token: 0x0600B00B RID: 45067 RVA: 0x001DC4AC File Offset: 0x001DA6AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170031DB RID: 12763
		// (get) Token: 0x0600B00C RID: 45068 RVA: 0x001DC4B5 File Offset: 0x001DA6B5
		// (set) Token: 0x0600B00D RID: 45069 RVA: 0x001DC4BD File Offset: 0x001DA6BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData RogueReviveCost
		{
			get
			{
				return this.rogueReviveCost_;
			}
			set
			{
				this.rogueReviveCost_ = value;
			}
		}

		// Token: 0x0600B00E RID: 45070 RVA: 0x001DC4C6 File Offset: 0x001DA6C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicReviveAvatarScRsp);
		}

		// Token: 0x0600B00F RID: 45071 RVA: 0x001DC4D4 File Offset: 0x001DA6D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicReviveAvatarScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.RogueReviveCost, other.RogueReviveCost) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B010 RID: 45072 RVA: 0x001DC524 File Offset: 0x001DA724
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.rogueReviveCost_ != null)
			{
				num ^= this.RogueReviveCost.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B011 RID: 45073 RVA: 0x001DC579 File Offset: 0x001DA779
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B012 RID: 45074 RVA: 0x001DC581 File Offset: 0x001DA781
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B013 RID: 45075 RVA: 0x001DC58C File Offset: 0x001DA78C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.rogueReviveCost_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.RogueReviveCost);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B014 RID: 45076 RVA: 0x001DC5E8 File Offset: 0x001DA7E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.rogueReviveCost_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueReviveCost);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B015 RID: 45077 RVA: 0x001DC640 File Offset: 0x001DA840
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicReviveAvatarScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.rogueReviveCost_ != null)
			{
				if (this.rogueReviveCost_ == null)
				{
					this.RogueReviveCost = new ItemCostData();
				}
				this.RogueReviveCost.MergeFrom(other.RogueReviveCost);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B016 RID: 45078 RVA: 0x001DC6A8 File Offset: 0x001DA8A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B017 RID: 45079 RVA: 0x001DC6B4 File Offset: 0x001DA8B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 82U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.rogueReviveCost_ == null)
					{
						this.RogueReviveCost = new ItemCostData();
					}
					input.ReadMessage(this.RogueReviveCost);
				}
			}
		}

		// Token: 0x0400475B RID: 18267
		private static readonly MessageParser<RogueMagicReviveAvatarScRsp> _parser = new MessageParser<RogueMagicReviveAvatarScRsp>(() => new RogueMagicReviveAvatarScRsp());

		// Token: 0x0400475C RID: 18268
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400475D RID: 18269
		public const int RetcodeFieldNumber = 13;

		// Token: 0x0400475E RID: 18270
		private uint retcode_;

		// Token: 0x0400475F RID: 18271
		public const int RogueReviveCostFieldNumber = 10;

		// Token: 0x04004760 RID: 18272
		private ItemCostData rogueReviveCost_;
	}
}
